
cmake_minimum_required(VERSION 3.0)
project(FILE)

#-----------------------------------------------------------------------------------------------------------------------
# ********************本节重点学习*******************
# 1.aux_source_directory搜索的用法
# *************************************************
#-----------------------------------------------------------------------------------------------------------------------
# 添加在当前路径下的所有源文件
aux_source_directory(${PROJECT_SOURCE_DIR} SRC)
#-----------------------------------------------------------------------------------------------------------------------
#指定可执行文件输出路径，如果不添加就会默认输出到当前路径
set(EXECUTABLE_OUTPUT_PATH /home/gabriel/mac_disk/cpp_project/cmake/demo_v2/build)
#-----------------------------------------------------------------------------------------------------------------------
#生成可执行文件
add_executable(app_demo2 ${SRC})
#-----------------------------------------------------------------------------------------------------------------------
